home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-12-02 | 4.0 KB | 151 lines | [TEXT/MPS ] |
- ;___________________________________________________________________________
- ; Created: Saturday, April 24, 1993
- ; Modified: Tue, Nov 30, 1993 01:16:44
- ;
- ; File: ImageCodec.a
- ;
- ; Assembler Interface to the Macintosh Libraries
- ; Copyright Apple Computer, Inc. 1990-93
- ; All Rights Reserved
- ;
- ;___________________________________________________________________________
-
- IF &TYPE('__INCLUDINGIMAGECODEC__') = 'UNDEFINED' THEN
- __INCLUDINGIMAGECODEC__ SET 1
-
-
-
- ; codec component selectors
- ; codec selectors 0-127 are reserved by Apple
- ; codec selectors 128-191 are subtype specific
- ; codec selectors 192-255 are vendor specific
- ; codec selectors 256-32767 are reserved by Apple
- ; negative selectors are reserved by the Component Manager
-
-
- codecGetCodecInfo EQU $00
- codecGetCompressionTime EQU $01
- codecGetMaxCompressionSize EQU $02
- codecPreCompress EQU $03
- codecBandCompress EQU $04
- codecPreDecompress EQU $05
- codecBandDecompress EQU $06
- codecCDSequenceBusy EQU $07
- codecGetCompressedImageSize EQU $08
- codecGetSimilarity EQU $09
- codecTrimImage EQU $0A
- codecRequestSettings EQU $0B
- codecGetSettings EQU $0C
- codecSetSettings EQU $0D
-
-
-
-
- ; codec capabilities flags
-
- codecCanScale EQU $1
- codecCanMask EQU $2
- codecCanMatte EQU $4
- codecCanTransform EQU $8
- codecCanTransferMode EQU $10
- codecCanCopyPrev EQU $20
- codecCanSpool EQU $40
- codecCanClipVertical EQU $80
- codecCanClipRectangular EQU $100
- codecCanRemapColor EQU $200
- codecCanFastDither EQU $400
- codecCanSrcExtract EQU $800
- codecCanCopyPrevComp EQU $1000
- codecCanAsync EQU $2000
- codecCanMakeMask EQU $4000
- codecCanShift EQU $8000
-
-
-
- codecConditionFirstBand EQU $1
- codecConditionLastBand EQU $2
- codecConditionFirstFrame EQU $4
- codecConditionNewDepth EQU $8
- codecConditionNewTransform EQU $10
- codecConditionNewSrcRect EQU $20
- codecConditionNewMask EQU $40
- codecConditionNewMatte EQU $80
- codecConditionNewTransferMode EQU $100
- codecConditionNewClut EQU $200
- codecConditionNewAccuracy EQU $400
- codecConditionNewDestination EQU $800
- codecConditionFirstScreen EQU $1000
- codecConditionCodecChangedMask EQU $80000000
-
- codecInfoResourceType EQU 'cdci' ;codec info resource type
-
- codecInterfaceVersion EQU 1 ; high word returned in component GetVersion
-
-
-
- CodecCapabilitiesRecord RECORD 0
- flags DS.L 1
- wantedPixelSize DS.W 1
- extendWidth DS.W 1
- extendHeight DS.W 1
- bandMin DS.W 1
- bandInc DS.W 1
- pad DS.W 1
- time DS.L 1
- size EQU *
- ENDR
-
- CodecCompressParams RECORD 0
- sequenceID DS.L 1 ; precompress,bandcompress
- imageDescription DS.L 1 ; precompress,bandcompress
- data DS.L 1
- bufferSize DS.L 1
- frameNumber DS.L 1
- startLine DS.L 1
- stopLine DS.L 1
- conditionFlags DS.L 1
- callerFlags DS.W 1
- capabilities DS.L 1 ; precompress,bandcompress
- progressProcRecord DS.L 2
- completionProcRecord DS.L 2
- flushProcRecord DS.L 2
- srcPixMap DS.W 25 ; precompress,bandcompress
- prevPixMap DS.W 25
- spatialQuality DS.L 1
- temporalQuality DS.L 1
- similarity DS.L 1
- dataRateParams DS.L 1
- reserved DS.L 1
- size EQU *
- ENDR
-
- CodecDecompressParams RECORD 0
- sequenceID DS.L 1 ; predecompress,banddecompress
- imageDescription DS.L 1 ; predecompress,banddecompress
- data DS.L 1
- bufferSize DS.L 1
- frameNumber DS.L 1
- startLine DS.L 1
- stopLine DS.L 1
- conditionFlags DS.L 1
- callerFlags DS.W 1
- capabilities DS.L 1 ; predecompress,banddecompress
- progressProcRecord DS.L 2
- completionProcRecord DS.L 2
- dataProcRecord DS.L 2
- port DS.L 1 ; predecompress,banddecompress
- dstPixMap DS.W 25 ; predecompress,banddecompress
- maskBits DS.L 1
- mattePixMap DS.L 1
- srcRect DS.W 4 ; predecompress,banddecompress
- matrix DS.L 1 ; predecompress,banddecompress
- accuracy DS.L 1 ; predecompress,banddecompress
- transferMode DS.W 1 ; predecompress,banddecompress
- reserved DS.L 2
- size EQU *
- ENDR
-
-
-
- ENDIF ; __IMAGECODEC__
-